#ifndef __VCD_GET_LOGIN_TICKET_H__
#define __VCD_GET_LOGIN_TICKET_H__
#include <inttypes.h>
#include <string.h>
#include <stdio.h>
#include <config.h>
#include <gio/gio.h>
#include <gtk/gtk.h>
#include <glib/gprintf.h>
#include <glib/gi18n.h>

#include <curl/curl.h>
#include <json-glib/json-glib.h>

#include "vcd-download.h"
G_BEGIN_DECLS
extern char g_new_resources_ticket[1024];
extern char g_final_ticket[1024];
extern char g_token[512];
extern uint64_t g_last_fresh_ticket_time;

typedef enum _TICKET_ACTION{
    ACTION_FRESH_TICKET,
    ACTINON_LOGIN
}TICKET_ACTION;

typedef struct ticket_context{
    TICKET_ACTION action;
}ticket_context;

int start_get_ticket(TICKET_ACTION action);

G_END_DECLS

#endif
